;
; vmbdoor.inc (MASM syntax include file)
; 
;
; General VMware Backdoor values
;
VMWARE_MAGIC		= 564D5868h	; Magic Number
VMWARE_PORT		= 5658h		; Port Number

;
; Backdoor commands
;
VMCMD_APM_FUNCTION	= 02h		; APM function?

VMCMD_GET_CURSOR	= 04h		; Get cursor position
VMCMD_SET_SURSOR	= 05h		; Set cursor position
VMCMD_GET_CLIPLEN	= 06h		; Get clipboard length
VMCMD_GET_CLIPDATA	= 07h		; Get clipboard data
VMCMD_SET_CLIPLEN	= 08h		; Set clipboard length
VMCMD_SET_CLIPDATA	= 09h		; Set clipboard data
VMCMD_GET_VERSION	= 0ah		; Get version
VMCMD_GET_DEVICE	= 0bh		; Get device information
VMCMD_SET_DEVICE	= 0ch		; Set device state
VMCMD_GET_SETTING	= 0dh		; Get preferrence settings
VMCMD_SET_SETTING	= 0eh		; Set Preferrence settings
VMCMD_GET_HOSTRES	= 0fh		; Get host's screen size

VMCMD_POPUP_DIALOG	= 12h		; OS not found message popup

VMCMD_GET_VMCONFIG	= 14h		; Get VM config information

VMCMD_GET_TIME		= 17h		; Get host's time (GMT)

VMCMD_TRANSFER		= 1eh		; Generic data transfer

;
; Preference bitmask (for VMCMD_GET_SETTING, VMCMD_SET_SETTING)
;
VMPREF_GRAB_MOVE	= 0001h		; grab by cursor movement	
VMPREF_UNGRAB_MOVE	= 0002h		; ungrab by cursor movement	
VMPREF_SCROLL_MOVE	= 0004h		; scroll by cursor movement	
VMPREF_COPY_PASTE	= 0010h		; copy and paste 		
VMPREF_FULLSCREEN	= 0040h		; full screen (read only)	
VMPREF_ENTER_FULL	= 0080h		; full screen (write only)	
VMPREF_SYNCRONIZE	= 0400h		; time syncronization		

;
; other definitions
;
VMCLIP_MAX_LENGTH	= 65355		; Maximum copy & paste data

TAB	= 09h
LF	= 0ah
CR	= 0dh

; end of file
